import request from '@/utils/request'

export function getAllLevel (data) {
  return request({
    url: '/v01/user/user_level/list',
    method: 'get'
    // params: data
  })
}

export function createLevel (level) {
  return request({
    url: '/v01/user/user_level/create',
    method: 'post',
    data: level
  })
}

export function updateLevel (level) {
  return request({
    url: '/v01/user/user_level/update',
    method: 'put',
    // params: {
    // },
    data: level
  })
}
